home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Image;
-
- abstract class a$a {
- // $FF: renamed from: for javax.microedition.lcdui.Image[]
- private Image[] field_0;
- // $FF: renamed from: long int
- private int field_1;
- // $FF: renamed from: char int
- private int field_2;
- // $FF: renamed from: if int
- private int field_3;
- // $FF: renamed from: void int
- private int field_4;
- // $FF: renamed from: else int
- private int field_5;
- // $FF: renamed from: a int[]
- private int[] field_6;
- // $FF: renamed from: goto boolean
- private boolean field_7;
- // $FF: renamed from: case long
- private long field_8;
- // $FF: renamed from: b int
- protected int field_9;
- // $FF: renamed from: try int
- protected int field_10;
- // $FF: renamed from: do int
- protected int field_11;
- // $FF: renamed from: byte int
- protected int field_12;
- // $FF: renamed from: int int
- protected int field_13;
- // $FF: renamed from: null boolean
- protected boolean field_14;
- // $FF: renamed from: c boolean
- protected boolean field_15;
- // $FF: renamed from: new boolean
- protected boolean field_16;
- // $FF: synthetic field
- private final a this$0;
-
- public a$a(a var1, int var2, int var3, Image[] var4, int var5) {
- this.this$0 = var1;
- this.field_0 = var4;
- this.field_12 = var2;
- this.field_13 = var3;
- this.field_1 = var5;
- this.field_6 = new int[100];
- this.field_2 = 1;
- this.field_3 = 0;
- this.field_4 = 1;
- this.field_11 = 0;
- this.field_10 = 0;
- this.field_5 = 0;
- this.field_8 = 0L;
- this.field_9 = Math.abs(a.access$700(var1).nextInt() % 2);
- this.field_16 = true;
- this.field_7 = false;
- this.field_14 = false;
- this.field_15 = false;
- a.access$800(var1).addElement(this);
- a.access$902(var1, true);
- }
-
- // $FF: renamed from: new () void
- protected abstract void method_0();
-
- // $FF: renamed from: try () void
- public void method_1() {
- if (this.field_16) {
- int var1 = this.field_12 / 8 * 8;
-
- label71:
- for(int var2 = 0; var2 < a.access$1000(this.this$0).length; var2 += 2) {
- if (var1 >= a.access$1000(this.this$0)[var2] && var1 <= a.access$1000(this.this$0)[var2 + 1] && a.access$1100(this.this$0)[var2] == this.field_13) {
- this.field_16 = false;
-
- for(int var3 = 0; var3 < a.access$200(this.this$0).size(); ++var3) {
- a$d var4 = (a$d)a.access$200(this.this$0).elementAt(var3);
- if (var4.a(this.field_12, this.field_13) && var4.a()) {
- this.field_16 = true;
- this.field_2 *= 2;
- if (!var4.byte()) {
- break label71;
- }
-
- for(int var5 = 0; var5 < a.access$800(this.this$0).size(); ++var5) {
- a$a var6 = (a$a)a.access$800(this.this$0).elementAt(var5);
- if (var6.method_3(this.field_12, this.field_13 + 8) && var4.a()) {
- this.field_3 += var6.method_11();
- var6.method_5(this.field_2);
- var6.method_7(true);
- var6.method_8(true);
- break;
- }
- }
-
- var4.if();
- break label71;
- }
- }
- break;
- }
- }
-
- if (this.field_16) {
- this.field_13 += 2;
- }
- } else if (this.field_7) {
- if (this.field_11 == -2 && System.currentTimeMillis() - this.field_8 > 1000L) {
- a.access$800(this.this$0).removeElement(this);
- } else if (this.field_11 == -1) {
- this.field_11 = -2;
- this.field_8 = System.currentTimeMillis();
- } else if (this.field_11 == 3) {
- this.field_11 = -1;
- int var7 = this.field_3 * this.field_4 * this.field_2;
- int var8 = this.field_1 * this.field_2;
- a.access$1212(this.this$0, var7);
- a.access$1312(this.this$0, var8);
- this.method_10(var7 + var8);
- } else if (this.field_11 == 2) {
- this.field_11 = 3;
- } else if (this.field_11 >= 0) {
- this.field_11 = 2;
- }
- } else {
- this.method_0();
- }
-
- }
-
- // $FF: renamed from: a (int) void
- public void method_2(int var1) {
- try {
- this.field_11 = ++this.field_10 % 2;
- int var2 = 0;
- int var3 = (this.field_13 - 2) / 4 * 4;
- int var4 = (this.field_13 + 5) / 4 * 4;
- boolean var5 = false;
- boolean var6 = false;
- boolean var7 = false;
- boolean var8 = false;
- boolean var9 = false;
- boolean var10 = false;
- boolean var11 = false;
- boolean var12 = false;
-
- for(int var13 = 0; var13 < a.access$1400(this.this$0).length; var13 += 2) {
- if (this.field_12 == a.access$1400(this.this$0)[var13]) {
- if (a.access$1500(this.this$0) - a.access$1600(this.this$0) <= a.access$1700(this.this$0)[var13] && a.access$1500(this.this$0) - a.access$1600(this.this$0) >= a.access$1700(this.this$0)[var13 + 1]) {
- var8 = true;
- }
-
- if (var3 <= a.access$1700(this.this$0)[var13] && var3 >= a.access$1700(this.this$0)[var13 + 1]) {
- if (this.field_13 > a.access$1500(this.this$0) - a.access$1600(this.this$0)) {
- var9 = true;
-
- for(int var14 = 0; var14 < var1 / 2; ++var14) {
- this.field_6[var2++] = 2;
- }
- }
-
- this.field_6[var2++] = 2;
- var6 = true;
- if (this.field_9 == 2) {
- var7 = true;
- }
- }
-
- if (var4 <= a.access$1700(this.this$0)[var13] && var4 >= a.access$1700(this.this$0)[var13 + 1]) {
- if (this.field_13 < a.access$1500(this.this$0) - a.access$1600(this.this$0)) {
- var10 = true;
-
- for(int var21 = 0; var21 < var1 / 2; ++var21) {
- this.field_6[var2++] = 3;
- }
- }
-
- this.field_6[var2++] = 3;
- var6 = true;
- if (this.field_9 == 3) {
- var7 = true;
- }
- }
- }
- }
-
- if (var8) {
- if (var9) {
- for(int var22 = 0; var22 < var1; ++var22) {
- this.field_6[var2++] = 2;
- }
- }
-
- if (var10) {
- for(int var23 = 0; var23 < var1; ++var23) {
- this.field_6[var2++] = 3;
- }
- }
- }
-
- int var24 = (this.field_12 - 2) / 8 * 8;
- int var15 = (this.field_12 + 9) / 8 * 8;
- var8 = false;
-
- for(int var16 = 0; var16 < a.access$1000(this.this$0).length; var16 += 2) {
- if (a.access$1100(this.this$0)[var16] == this.field_13) {
- if (a.access$1800(this.this$0) - a.access$1900(this.this$0) >= a.access$1000(this.this$0)[var16] && a.access$1800(this.this$0) - a.access$1900(this.this$0) <= a.access$1000(this.this$0)[var16 + 1]) {
- var8 = true;
- }
-
- if (var24 >= a.access$1000(this.this$0)[var16] && var24 <= a.access$1000(this.this$0)[var16 + 1]) {
- if (this.field_12 > a.access$1800(this.this$0) - a.access$1900(this.this$0)) {
- var11 = true;
- }
-
- this.field_6[var2++] = 0;
- var5 = true;
- if (this.field_9 == 0) {
- var7 = true;
- }
- }
-
- if (var15 >= a.access$1000(this.this$0)[var16] && var15 <= a.access$1000(this.this$0)[var16 + 1]) {
- if (this.field_12 < a.access$1800(this.this$0) - a.access$1900(this.this$0)) {
- var12 = true;
- }
-
- this.field_6[var2++] = 1;
- var5 = true;
- if (this.field_9 == 1) {
- var7 = true;
- }
- }
- }
- }
-
- if (var8) {
- if (var11) {
- for(int var17 = 0; var17 < var1 / 2; ++var17) {
- this.field_6[var2++] = 0;
- }
- }
-
- if (var12) {
- for(int var25 = 0; var25 < var1 / 2; ++var25) {
- this.field_6[var2++] = 1;
- }
- }
- }
-
- if (var6 && var5 || !var7) {
- this.field_9 = this.field_6[Math.abs(a.access$700(this.this$0).nextInt() % var2)];
- }
-
- switch (this.field_9) {
- case 0:
- this.field_12 -= 2;
- break;
- case 1:
- this.field_12 += 2;
- break;
- case 2:
- this.field_13 -= 2;
- break;
- case 3:
- this.field_13 += 2;
- }
-
- for(int var26 = 0; var26 < a.access$200(this.this$0).size(); ++var26) {
- a$d var18 = (a$d)a.access$200(this.this$0).elementAt(var26);
- if (var18.a(this.field_12, this.field_13) && var18.a() && !var18.byte()) {
- var18.a(true);
- this.field_13 += 8;
- this.field_15 = true;
- break;
- }
- }
- } catch (Exception var19) {
- }
-
- }
-
- // $FF: renamed from: if (int, int) boolean
- public boolean method_3(int var1, int var2) {
- if (var2 != this.field_13) {
- return false;
- } else {
- return this.field_12 <= var1 && this.field_12 + 8 >= var1;
- }
- }
-
- // $FF: renamed from: a (int, int) boolean
- public boolean method_4(int var1, int var2) {
- if (this.field_11 < 0) {
- return false;
- } else if (this.field_13 - 8 + 1 <= var2 && this.field_13 + 8 - 1 >= var2) {
- return this.field_12 - 8 + 1 <= var1 && this.field_12 + 8 - 1 >= var1;
- } else {
- return false;
- }
- }
-
- // $FF: renamed from: if (int) void
- public void method_5(int var1) {
- this.field_4 = var1;
- }
-
- // $FF: renamed from: do (boolean) void
- public void method_6(boolean var1) {
- this.field_14 = var1;
- }
-
- // $FF: renamed from: a (boolean) void
- public void method_7(boolean var1) {
- this.field_16 = var1;
- }
-
- // $FF: renamed from: if (boolean) void
- public void method_8(boolean var1) {
- this.field_7 = var1;
- }
-
- // $FF: renamed from: int () int
- public int method_9() {
- return this.field_5;
- }
-
- // $FF: renamed from: do (int) void
- public void method_10(int var1) {
- this.field_5 = var1;
- }
-
- // $FF: renamed from: for () int
- public int method_11() {
- return this.field_1;
- }
-
- // $FF: renamed from: if () int
- public int method_12() {
- return this.field_12;
- }
-
- // $FF: renamed from: a () int
- public int method_13() {
- return this.field_13;
- }
-
- // $FF: renamed from: do () javax.microedition.lcdui.Image
- public Image method_14() {
- return this.field_11 >= 0 ? this.field_0[this.field_11] : null;
- }
- }
-